﻿using UnityEngine;
using System.Collections;

public partial class LoginScene : Scene
{
	public void OnChange_LoginId()
	{
		if (loginIdInput.value.Length > LIMIT_ID_LENGTH)
			loginIdInput.value = loginIdInput.value.Substring(0, LIMIT_ID_LENGTH);
	}

	public void OnChange_JoinId()
	{
		if (joinIdInput.value.Length > LIMIT_ID_LENGTH)
			joinIdInput.value = joinIdInput.value.Substring(0, LIMIT_ID_LENGTH);
	}

	public void OnChange_JoinName()
	{
		if (joinNameInput.value.Length > LIMIT_NAME_LENGTH)
			joinNameInput.value = joinNameInput.value.Substring(0, LIMIT_NAME_LENGTH);
	}
}